package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponCategoryJoint;
import com.ecoolex.hotel.saas.entity.PresaleCouponCategoryJointExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponCategoryJointMapper {
    long countByExample(PresaleCouponCategoryJointExample example);

    int deleteByExample(PresaleCouponCategoryJointExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PresaleCouponCategoryJoint record);

    int insertSelective(@Param("record") PresaleCouponCategoryJoint record, @Param("selective") PresaleCouponCategoryJoint.Column ... selective);

    PresaleCouponCategoryJoint selectOneByExample(PresaleCouponCategoryJointExample example);

    List<PresaleCouponCategoryJoint> selectByExample(PresaleCouponCategoryJointExample example);

    PresaleCouponCategoryJoint selectByPrimaryKey(Integer id);

    PresaleCouponCategoryJoint selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponCategoryJoint record, @Param("example") PresaleCouponCategoryJointExample example, @Param("selective") PresaleCouponCategoryJoint.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponCategoryJoint record, @Param("example") PresaleCouponCategoryJointExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponCategoryJoint record, @Param("selective") PresaleCouponCategoryJoint.Column ... selective);

    int updateByPrimaryKey(PresaleCouponCategoryJoint record);

    int batchInsert(@Param("list") List<PresaleCouponCategoryJoint> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponCategoryJoint> list, @Param("selective") PresaleCouponCategoryJoint.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponCategoryJointExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}